package cn.blackhole.simple.domain.circuitBreaker.service;

import cn.blackhole.simple.domain.circuitBreaker.model.objValue.CircuitState;

// 熔断器接口
public interface CircuitBreaker {
    boolean allowRequest();
    void recordSuccess();
    void recordFailure();
    CircuitState getState();
}